package com.shanzmoo.db.store.entity.bo;

import com.shanzmoo.db.store.entity.StoreMemberEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;


/**
 * 仓储客户 vo对象
 *
 * @author Gzhao 2021-03-08
 */
@Data
@ApiModel("仓储客户-下拉选择列表对象")
public class StoreMemberSelectBO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户ID")
    private Integer memberId;
    @ApiModelProperty(value = "用户名称(公司名称)")
    private String memberName;

    public static StoreMemberSelectBO createByEntity(StoreMemberEntity storeMemberEntity) {
        StoreMemberSelectBO selectBO = new StoreMemberSelectBO();
        selectBO.setMemberId(storeMemberEntity.getId());
        selectBO.setMemberName(storeMemberEntity.getCompany());
        return selectBO;
    }
}
